
body {
    font-size: .9rem;
}

.dataTable tr, .dataTable td {
    border-width: 0 !important;
}

.info-box {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: .25rem;
    padding: 1.5rem;
    background: #fff
}


/*.select2 {*/
/*    max-width: 100%;*/
/*    min-width: 150px;*/
/*}*/

.filter_form .select2 {
    max-width: 150px !important;
    min-width: 75px;
}

.select2-container .select2-selection--single {
    height: calc(2.2rem) !important;
    line-height: calc(2.2rem) !important;
    padding: 0.3rem 0.7rem !important;
}


.badge {
    text-transform: initial !important;
    padding: 5px 5px;
    min-width: 19px;
    display: inline-block;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.dt-buttons {
    float: right !important;
}

.dropzone {
    border: 2px dashed rgba(0, 0, 0, .3) !important;
}

.ck-editor__editable,
textarea {
    min-height: 50px;
}

/* Container alignment */

.dataTables_wrapper .dataTables_paginate.paging_simple {
    text-align: right;
    margin-top: 1rem;
}

/* Previous/Next button base style */

.dataTables_wrapper .dataTables_paginate.paging_simple a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0 2px;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

/* Hover effect */

.dataTables_wrapper .dataTables_paginate.paging_simple a:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Disabled state */

.dataTables_wrapper .dataTables_paginate.paging_simple a.disabled {
    color: #6c757d !important;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Remove focus outline */

.dataTables_wrapper .dataTables_paginate.paging_simple a:focus {
    outline: none;
    box-shadow: none;
}

a.badge:hover, a.badge:focus {
    text-decoration: none;
}

.badge:empty {
    display: none;
}

.btn .badge {
    position: relative;
    top: -1px;
}

.badge-pill {
    padding-right: 0.6em;
    padding-left: 0.6em;
    border-radius: 10rem;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

a.badge-primary:hover, a.badge-primary:focus {
    color: #fff;
    background-color: rgb(38.4935064935, 80.9350649351, 189.5064935065);
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

a.badge-secondary:hover, a.badge-secondary:focus {
    color: #fff;
    background-color: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

a.badge-success:hover, a.badge-success:focus {
    color: #fff;
    background-color: rgb(46.3543307087, 156.6456692913, 99.9015748031);
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

a.badge-info:hover, a.badge-info:focus {
    color: #fff;
    background-color: rgb(0, 143.5536480687, 226);
}

.badge-warning {
    color: #212529;
    background-color: #f7b924;
}

a.badge-warning:hover, a.badge-warning:focus {
    color: #212529;
    background-color: rgb(223.8237885463, 160.4581497797, 8.1762114537);
}

.badge-danger {
    color: #fff;
    background-color: #d92550;
}

a.badge-danger:hover, a.badge-danger:focus {
    color: #fff;
    background-color: rgb(173.4291338583, 29.5708661417, 63.937007874);
}

.badge-light {
    color: #212529;
    background-color: #eeeeee;
}

a.badge-light:hover, a.badge-light:focus {
    color: #212529;
    background-color: rgb(212.5, 212.5, 212.5);
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

a.badge-dark:hover, a.badge-dark:focus {
    color: #fff;
    background-color: rgb(29.1379310345, 32.5, 35.8620689655);
}

.badge-focus {
    color: #fff;
    background-color: #444054;
}

a.badge-focus:hover, a.badge-focus:focus {
    color: #fff;
    background-color: rgb(44.5675675676, 41.9459459459, 55.0540540541);
}

.badge-alternate {
    color: #fff;
    background-color: #794c8a;
}

a.badge-alternate:hover, a.badge-alternate:focus {
    color: #fff;
    background-color: rgb(92.1635514019, 57.8878504673, 105.1121495327);
}

.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
}

.custom-select:focus {
    border-color: rgb(127.5, 189, 255);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(127.5, 189, 255, 0.5);
}

.custom-select:focus::-ms-value {
    color: #495057;
    background-color: #fff;
}

.custom-select[multiple], .custom-select[size]:not([size="1"]) {
    height: auto;
    padding-left: 0.75rem;
    background-image: none;
}

.custom-select:disabled {
    color: #6c757d;
    background-color: #e9ecef;
}

.custom-select::-ms-expand {
    opacity: 0;
}

.custom-select-sm {
    height: calc(1.8125rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
}

.custom-select-lg {
    height: calc(2.875rem + 2px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: 1.25rem;
}

/*.text-xl {*/
/*    font-size: 1.25rem;*/
/*    line-height: 1.75rem*/
/*}*/

.text-base {
    font-size: 1rem;
    line-height: 1.5rem
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem
}

.dot-btn-wrapper .badge-abs.badge-dot-sm {
    top: -2px;
    margin-left: -3px;
}

.badge-dot-sm {
    width: 6px !important;
    height: 6px !important;
}

.btn .badge-dot.badge-dot-sm {
    width: 8px;
    height: 8px;
    border-width: 1px;
}

.btn .badge-dot-inside {
    top: 10px;
    left: 10px;
}

.btn-sm .badge-dot-sm, .btn-group-sm > .btn .badge-dot-sm {
    top: 1px;
    left: 4px;
}

.dropdown-item.disabled {
    pointer-events: unset !important;
    cursor: not-allowed !important;
}

.ml-2, .mx-2 {
    margin-left: 0.5rem !important;
}

.mr-2, .mx-2 {
    margin-right: 0.5rem !important;
}

.btn.disabled {
    pointer-events: unset !important;
    cursor: not-allowed !important;
}

.gap-2 {
    gap: 0.5rem !important;
}


.table th {
    border-top: 0 white !important;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* or rgba(255,255,255,0.8) */
    z-index: 9999;
}

.hide {
    display: none;
}

.modal {
    top: 50px;
}

.modal-backdrop, .blockOverlay {
    position: relative;
}


.project-details-card {
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-section {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0.35rem;
    border: 1px solid #eee;
}

.section-title {
    color: #555;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #ddd;
}

.info-item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: #666;
    width: 120px;
    margin-left: 0.5rem;
}

.info-value {
    flex: 1;
    color: #333;
}

@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 0.25rem;
        margin-left: 0;
    }
}

.font-weight-bold {
    font-weight: 700 !important;
}

.social-button.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.whatsapp {
    background-color: #25D366;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #000;
    transition: background 0.3s;
    min-width: 100px;
}

#table_loader {
    display: none;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

#table_loader .spinner-border {
    width: 2rem;
    height: 2rem;
}

#table_loader .loader-text {
    font-size: 14px;
    margin-top: 5px;
    color: #666;
}


#table_loader.inline-show {
    display: inline-block;
}

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Custom styling for the dropdown */
.dataTables_wrapper .dropdown-menu {
    z-index: 1060 !important; /* Ensure dropdown appears above table */
}

.btn-icon-only {
    padding: 0.375rem;
    border: none;
    background: transparent !important;
}

.btn-icon-only:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #dee2e6;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #dee2e6;
}


table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

table.dataTable tbody td.select-checkbox {
    padding-left: 30px;
}


.card-header .dropdown-menu {
    min-width: auto !important;
    width: 65px !important;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
    content: " ";
    margin-top: -7px;
    margin-left: -15px;
    border: 1px solid #000;
    border-radius: 3px;
}

table.dataTable tr.selected td.select-checkbox:after,
table.dataTable tr.selected th.select-checkbox:after {
    content: "✓";
    margin-top: -11px;
    margin-left: -15px;
    text-align: center;
    text-shadow: 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}


.btn-info.assign-group-btn {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info.assign-group-btn:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-info.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* Two-column layout */
div.dt-button-collection.fixed-two-column {
    width: 400px;
}

div.dt-button-collection.fixed-two-column button.dt-button {
    display: inline-block;
    width: 48%;
    margin: 1%;
}

/* Footer Row Styling */
table.dataTable tfoot th {
    border-top: 2px solid #333;
    border-bottom: 2px solid #dee2e6;
    background-color: #eff2f4;
    font-weight: bold;
    text-align: right;
    padding: 8px;
    color: #333;
}

/* Align numeric columns (totals) to the right */
#footer-project-cost,
#footer-total-donation {
    font-weight: bold;
    color: #3f6ad8;
}

.app-page-title .page-title-icon {
    margin: 0 0 0 0;
    box-shadow: none;
    background: inherit;
}

/*select.has-value ~ .select2-container .select2-selection--single .select2-selection__rendered {*/
/*    background-color: #5897fb;*/
/*    color: white;*/
/*    border-radius: 5px;*/
/*    width: 98%;*/
/*    font-size: 15px;*/
/*}*/

.custom-radio .form-control.date {
    margin-left: 10px;
}

.custom-control-label {
    font-weight: 600;
}

.custom-control {
    margin-bottom: .5rem;
}

label.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.selected_item {
    /*background-color: black;*/
    border-radius: 10px;
    width: 100%;
    padding-right: 5px;
    padding-left: 5px;
    text-decoration: underline;
}


.bg-happy-green {
    background-image: none !important;
    background-color: #28a745;
    opacity: 1 !important;
}


.bg-night-fade {
    background: #0069d9 linear-gradient(180deg, #268fff, #0069d9) repeat-x !important;
    opacity: 1 !important;
}

.bg-arielle-smile {
    background-image: none !important;
    background-color: #17a2b8;
    opacity: 1 !important;
}


.main-card .widget-heading {
    opacity: 1 !important;
    color: white !important;
    font-size: 16px;
}

.widget-numbers {
    color: white !important;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}


.btn-info {
    color: #fff;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    box-shadow: none;
    border-radius: .3rem;
}

.fa-2 {
    font-size: 19px;
}

.bg-sunny-morning {
    background-image: none !important;
    background-color: #ffc107;
    opacity: 1 !important;
    color: #1f2d3d;
}

.btn-warning {
    color: #1f2d3d;
    background-color: #ffc107;
    border-color: #ffc107;
    box-shadow: none;
}

.bg-sunny-morning a {
    color: black !important;
}

.swal2-styled.swal2-deny {
    background-color: #28a745 !important;
}


.dt-buttons .btn {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.88em;
    line-height: 1.6em;
    white-space: nowrap;
    overflow: hidden;
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr="rgba(230, 230, 230, 0.1)", EndColorStr="rgba(0, 0, 0, 0.1)");
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    outline: none;
    text-overflow: ellipsis;
}

.category-table table.dataTable tbody > tr.selected, .category-table table.dataTable tbody > tr > .selected {
    background-color: inherit !important;
}


.cursor-pointer {
    cursor: pointer !important;
}


.select2-results__option a {
    color: inherit !important;
}

.donors_select .select2-selection__choice {
    cursor: pointer !important;
}


.published-option {
    font-weight: bold;
}

.unpublished-option {
    color: red;
}

.switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745 !important;
}

input:checked + .slider:before {
    transform: translateX(26px) !important;
}


.alert {
    margin-bottom: 1.5rem !important;
}


.crop img {
    position: relative;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    max-width: 100%;
    top: 0;
}

.img-circle {
    border-radius: 50%;
}

.crop.crop-50 {
    width: 40px;
    height: 40px;
}


.table-history figure {
    margin: 0 0 0 !important;
}

.icon-right,
.icon-left {
    display: inline-block;
    vertical-align: middle;
}

.media :first-child {
    margin-top: 0 !important;
}


.table-image img.img-circle {
    border-radius: 50%; /* Make it round */
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.d-flex.gap-2 {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between image and name */
}
.form-check-input {
    margin-left: 5px;
    width: 16px;
    height: 16px;
    background-color: transparent;
}


.form-check{
    padding-right: 0 !important;
}
